#if !defined(AFX_MegaDrawerPrefs_H__A679A5A3_12DF_45D1_869D_546FFDABF7F6__INCLUDED_)
#define AFX_MegaDrawerPrefs_H__A679A5A3_12DF_45D1_869D_546FFDABF7F6__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MegaDrawerPrefs.h : header file
//
#include "../GUI/MegaDrawer.h"
#include "../GUI/MegaButton.h"
#include "../GUI/MegaListBox.h"
#include "../GUI/MegaComboBox.h"
#include "../RMSLib/Info.h"
/////////////////////////////////////////////////////////////////////////////
// CMegaDrawerPrefs window
class RMSHostEnt;

class CMegaDrawerPrefs : public CMegaDrawer
{
// Construction
public:
	CMegaDrawerPrefs();

// Attributes
public:

// Operations
public:
	virtual void SetBitmaps(UINT uiSkinSingle, UINT uiSkinDouble, UINT uiSkinSingleUn, UINT uiSkinDoubleUn);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMegaDrawerPrefs)
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CMegaDrawerPrefs();
	void SetServerParams(RMSHostEnt * pHost, int nPort, int nCycle);
	void SetPassword(CString strPass);
	void SetBitrate(int nBitrate);
	void SetFPS(int nFPS);
	void SetFrameSize(bool b640x480);
#if defined(_OEM_) && defined(_TEC_)
	void SetHomePath(CString home);
#endif //defined(_OEM_) && defined(_TEC_)

	// Generated message map functions
protected:
	virtual void RepositionControls();
	//{{AFX_MSG(CMegaDrawerPrefs)
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);

	afx_msg void OnClearPic();
	afx_msg void OnSetPic();
	afx_msg void OnSource();
	afx_msg void OnFPSChange();
	afx_msg void OnSizeChange();
	afx_msg void OnCancel();
	afx_msg void OnOk();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

	CMegaBitmap m_StreamboxPower;
	CEdit m_Port, m_Pass, m_Bitrate;
	CMegaComboBox m_IPCombo, m_FPSCombo;
	CMegaComboBox m_SizeCombo;
	CMegaButton m_ClearPicBtn, m_SetPicBtn, m_SourceBtn, m_CancelBtn, m_OkBtn;

#if defined(_OEM_) && defined(_TEC_)
	CEdit m_Home;
	CString m_homePath;
#endif //defined(_OEM_) && defined(_TEC_)

	// server params
	RMSHostEnt * m_pHost;
	int m_nIPNum;
	int m_nPort;
	int m_nCycle;
	CString m_strPass;
	int m_nBitrate;
	int m_nFPS;
	bool m_b640x480;
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MegaDrawerPrefs_H__A679A5A3_12DF_45D1_869D_546FFDABF7F6__INCLUDED_)
